home *** CD-ROM | disk | FTP | other *** search
/ Mac Magazin/MacEasy 11 / Mac Magazin and MacEasy Magazine CD - Issue 11.iso / Sharewarebibliothek / Entwickler / CDEF-DeBugger 2.0 ƒ / About Resource.c < prev    next >
C/C++ Source or Header  |  1995-05-31  |  1KB  |  29 lines

  1. // Resource ReadMe
  2.  
  3. /***********************************************************************************************
  4.  
  5.     Different from version 1.0 of CDEF Debugger. You now must have this code
  6.     compiled and placed within your projects resource. This is what should be
  7.     compiled...
  8.     
  9.     // be sure to include Universal Headers
  10.     
  11.     pascal long main( short variation, ControlHandle theControl, short msg, long param )
  12.     {
  13.     
  14.        // get the UPP stored in the control's refCon
  15.        ControlDefUPP  cdefDefUPP = (ControlDefUPP)(**theControl).contrlRfCon;
  16.        
  17.        // now call the UPP with the parameters the toolbox sent ya
  18.        return( CallControlDefProc( cdefDefUPP, variation, theControl, msg, param ));
  19.        
  20.     }
  21.     
  22.     I've provided the compiled version of this in the file called "Stub.r". Make
  23.     sure this file is located within the project or this process of debuggin will
  24.     not work.
  25.     
  26.     Be sure to give this CDEF resource the same ID you plan to use for your control
  27.     
  28.   
  29. ************************************************************************************************/